﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _8Group.MES.ISongService.MdWorkshop.DTO
{
    public class AddMdWorkShopDTO
    {
        /// <summary>
        /// 车间编码 (Not Null, Max Length: 64)
        /// </summary>
        [Required]
        [MaxLength(64)]
        public string WorkshopCode { get; set; } = string.Empty;

        /// <summary>
        /// 车间名称 (Not Null, Max Length: 255)
        /// </summary>
        [Required]
        [MaxLength(255)]
        public string WorkshopName { get; set; } = string.Empty;

        /// <summary>
        /// 面积
        /// </summary>
        public double? Area { get; set; }

        /// <summary>
        /// 负责人 (Max Length: 64)
        /// </summary>
        [MaxLength(64)]
        public string Charger { get; set; } = string.Empty;

        /// <summary>
        /// 是否启用 (Not Null, Default: 'Y')
        /// </summary>
        [Required]
        public char EnableFlag { get; set; } = 'Y';

        /// <summary>
        /// 备注 (Max Length: 500)
        /// </summary>
        [MaxLength(500)]
        public string? Remark { get; set; }

        /// <summary>
        /// 创建人 (Max Length: 64)
        /// </summary>
        [MaxLength(64)]
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
    }
}
